package net.whzjkj.gateway.core.config;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;
import java.util.Properties;

/**
 * @description: netty配置
 * @author: Mr.Hu
 * @create: 2018-11-05 16:43
 **/
@Data
@ConfigurationProperties(prefix = "netty")
public class NettyProperties {
    public int port = 22222;
    public int bossThreadCount = 1;
    public int workerThreadCount = 8;
    public long maxFrameLength = 1024;
    public int readerIdleTime;
    public int writerIdleTime;
    public int allIdleTime;
    public Map<String, Object> channelOptions;
}
